package tests;

import common.Utils;
import org.openqa.selenium.By;

public class EditPage extends Utils {
    public static String url = "";

    public EditPage() {
        super(url);
    }

    /**
     * 博客编辑页发布成功
     * @throws InterruptedException
     */
    public void EditPageByLogin() throws InterruptedException {
        Thread.sleep(3000);
        driver.findElement(By.cssSelector("body > div.container > div.right > div:nth-child(1) > a")).click();
        driver.findElement(By.cssSelector("#h2-u5728u8FD9u91CCu5199u4E0Bu4E00u7BC7u535Au5BA2"));
        driver.findElement(By.cssSelector("body > div.nav > a:nth-child(6)")).click();
        //driver.findElement(By.cssSelector("body > div.nav > a:nth-child(6)")).click();
    }
}
